﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FireBall : MonoBehaviour
{
    Rigidbody2D rb;
    public float speed;
    public GameObject wizard;
    void Start()
    {
        rb = GetComponent<Rigidbody2D>();
    }

    
    void Update()
    {
        Shoot();
    }

    public void Shoot()
    {
        rb.velocity = new Vector2(-1 * speed, 1);
    }
}
